<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.service.plan.*"%>
<%@page import="org.hibernate.*"%>
<%@page import="org.hibernate.cfg.*"%>
<%@page import="java.util.*"%>
<%
    request.setCharacterEncoding("UTF-8");
	String msgid = request.getParameter("msgid");
	SessionFactory sf = new Configuration().configure().buildSessionFactory();
    Session session1 = sf.openSession();
    String Hql="From Sendmsg where msgId='"+msgid+"'";
	Query q = session1.createQuery(Hql);

	List list = q.list();
	Sendmsg msg = (Sendmsg)list.get(0);
	String phonenum=msg.getPhoneNum();
	String time=msg.getSendTime();
	String content=msg.getMsgContent();
	session1.close();
%>

<html>
<head>
	<title>消息详细内容</title>
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>消息详情</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							手机号
						</td>
						<td>
							<%=phonenum %>
						</td>
					</tr>
					<tr>
						<td class="field">
							发送时间
						</td>
						<td>
							<%=time%>
						</td>
					</tr>
					<tr style="height: 100px">
						<td class="field">
							消息内容
						</td>
						<td valign="top">
							<%=content %>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tableBtn">
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>
